package org.effdom;

import org.effdom.impl.TestConst;
import org.junit.Test;

public class EffDomUseCase {

    @Test
    public void testAttr() {
        Document doc = DocumentFactory.createInstance().createDocument();
        Element elem = doc.rootElement(TestConst.ELEM_ROOT);

        elem.attr(TestConst.ATTR_1, TestConst.STRING_VALUE);
        String attrValue1 = elem.attrValue(TestConst.ATTR_1);

        elem.element(TestConst.ELEM_1).attr(TestConst.ATTR_2, 2);
        elem.element(TestConst.ELEM_1).attr(TestConst.ATTR_2, 2);
        elem.element(TestConst.ELEM_1).attr(TestConst.ATTR_2, 2);
        elem.element(TestConst.ELEM_1).attr(TestConst.ATTR_2, 2);

        for (Element e : elem.elements(TestConst.ELEM_1)) {

        }
    }
}
